package com.qef.com.mmovie.mvp.interactor;

import com.avos.avoscloud.AVException;
import com.avos.avoscloud.FindCallback;
import com.qef.com.mmovie.api.NetApi;
import com.qef.com.mmovie.net.IGetDataDelegate;

import java.util.List;

import javax.inject.Inject;

/**
 * Created by guangjiego on 2017/6/8.
 */

public class MyCommentedIneractor {
    @Inject
    public MyCommentedIneractor() {
    }

    public void getMyCommentInfo(int page, String username, IGetDataDelegate<List> objectIGetDataDelegate) {
        //查询对应用户收藏信息
        NetApi.getMyCommentInfo(page, username, new FindCallback() {
            @Override
            public void done(List list, AVException e) {
                objectIGetDataDelegate.getDataSuccess(list);
            }
        });
    }
}
